package com.nfit.shopweb.mapper;

import com.nfit.shopmodel.dto.system.SysRoleDto;
import com.nfit.shopmodel.entity.system.SysRole;
import io.swagger.v3.oas.annotations.media.Schema;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName:SysRoleMapper
 * Package:com.nfit.shopweb.mapper
 * Description
 *
 * @Author L
 * @Create 2024/11/17 12:40
 */
@Schema(description = "角色SQL映射Mapper")
@Mapper
public interface SysRoleMapper {

    List<SysRole> page(SysRoleDto sysRoleDto);

    void save(SysRole sysRole);

    void delete(Long id);

    void update(SysRole sysRole);

    /**
     * 查询所有角色
     */
    List<SysRole> findAll();
}
